
These are the replication files for:

Rathbun, Brian C. and Caleb Pomeroy "See No Evil, Speak No Evil? Morality, Evolutionary Psychology, and the Nature of International Relations," International Organization.


Scripts and data included -----

1. "text_analysis.R" reproduces the main and supplementary text analyses. The data for this script (which consist of trained word embeddings) are located in the "data/word_vectors" folder. If using the FRUS embeddings marked "lauretig" in your own published work, please also cite:

Lauretig, Adam M. 2019. Identification, Interpretability, and Bayesian Word Embeddings. In Proceedings of the Third Workshop on Natural Language Processing and Computational Social Science, 7–17. Association for Computational Linguistics.

And, if using the FRUS embeddings marked "soviets," please also cite:

Katagiri, Azusa, and Eric Min. 2015. Identifying Threats: Using Machine Learning in International Relations. Paper presented at the Annual Meeting of the American Political Science Association.

2. "russia_analysis.R" reproduces the Russian build-a-threat results. "russia_data.csv" contains the data used in this script.

3. "china_analysis.R" reproduces the China survey results from the Appendix. "china_bas.csv" contains the data needed to reproduce the BAS correlations from the Appendix. "china_mass.csv" contains the data from the USCSPP needed to reproduce the various regressions in the Appendix.


Replication process -----

1. Ensure there's a top-level folder "seeing_evil_replication" (or whatever you'd like to call it), which contains a "scripts" folder and "data" folder. The "scripts" folder contains the three R scripts. The "data" folder contains the Russia and China CSVs, as well as a "word_vectors" folder containing the various embeddings. This structure should download automatically from Dataverse.

2. Set your working directory in R to the location of the top-level folder containing the replication files.

3. Install the necessary packages listed at the top of the scripts, if they aren't already installed.

4. The scripts are self-contained analyses, so you can run them in any order. 


Version details -----

-All analyses carried out using R version 3.6.1, R studio version 1.1.383, on a MacBook (1.1GHz, 8GB RAM).

-Package versions: ggplot2 (3.3.3), quanteda (1.5.2), readr (1.3.1), mediation (4.5.0), igraph (1.2.4.2), plyr (1.8.4), dplyr (0.8.3), texreg (1.37.5), ggrepel (0.8.1), tm (0.7-8), lsa (0.73.1).
